
#ifndef KORNERS_GAME_ENGINE_DUAL
#define KORNERS_GAME_ENGINE_DUAL

#include "korners_game_engine.h"

#include <QList>
#include <QPoint>


class KornersGameEngineDual : public KornersEngine
{
    Q_OBJECT
public:
    KornersGameEngineDual();
    void makeNextMove( const QPoint& src, const QPoint& dst );

    bool canSelect( const QPoint& src ) const;
    bool canMove( QPoint src, QPoint dst ) const;

public slots:

signals:

private:
    QList<QPoint> m_reds;
    QList<QPoint> m_blues;

    enum whoseTurn
    {
	none = 0,
	reds = 1,
	blues = 2,
    };

    mutable whoseTurn m_whoseTurn;
};

#endif
